package com.tinyengine.it.model.vo;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class DbTableInfoVo {

    private Integer id;

    private Integer appId;

    /**
     * 表名
     */
    @NotNull(message = "表名不能为空")
    private String name;

    /**
     * 显示名称
     */
    @NotNull(message = "表名不能为空")
    private String nameCh;

    /**
     * 所属服务
     */
    @NotNull(message = "服务ID不能为空")
    private Integer serviceId;

    @Valid
    private List<DbTableFieldsInfoVo> fields;
}
